/**********************************************
/ file : ofdm.sc
/ Author : Jungmin Park
/ Date : 4/25/2011 
/ Specification Model of OFDM 
***********************************************/

import "constellation_mapping";
import "ifft";
import "ifft_radix4";
import "c_double_handshake";

behavior ofdm (i_receiver IR, i_sender IS1, i_sender IS2)
{
  c_double_handshake ch1, ch2;
  
  Constellation_mapping U00(IR, ch1, ch2);
  ifft_radix4 U01(ch1, ch2, IS1, IS2);
                          
  void main(void) 
  {
		par {
			U00.main();
			U01.main();
		}
	}
};                                                              
